<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>"Real-Time Fluid Dynamics for Games" at JavaScript&Canvas</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <script src="./prototype.js" type="text/javascript"></script>
    <script src="./fluid.js" type="text/javascript"></script>
    <style type="text/css">
      canvas { border: 1px solid black; }
    </style>
  </head>
  <body>
    <h1>"Real-Time Fluid Dynamics for Games" at JavaScript&Canvas</h1>
    <canvas id="main" width=256 height=256></canvas><br/>
    <dl><dt>click</dt><dd>add source</dd><dt>click with shift-key</dt><dd>blow</dd></dl>
    <input type="radio" name="draw" onclick="dvel=0;" checked="checked">draw density</input><br/>
    <input type="radio" name="draw" onclick="dvel=1;">draw velocity</input>
  <hr/>
  <div>
  Ported C&OpenGL codes to JavaScript&Canvas, from the paper "Real-Time Fluid Dynamics
  for Games" by Jos Stam at GDC2003.<br/>
  You can get the original codes and the paper from
  <a href="http://www.dgp.toronto.edu/people/stam/reality/Research/pub.html">http://www.dgp.toronto.edu/people/stam/reality/Research/pub.html</a>
  </body>
</html>
